determine the general solution